import { ConditionManageAPI } from '../common/type';

/** 流程设计搜索 */
const getSearchColumns = (): ConditionManageAPI.IHeaderSearchType => {
  return [
    {
      name: 'field',
      label: '表字段',
      placeholder: '表字段',
      componentType: 'Input',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'fieldName',
      placeholder: '字段名称',
      label: '字段名称',
      componentType: 'Input',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'fieldType',
      placeholder: '字段类别',
      label: '字段类别',
      componentType: 'Select',
      dataSource: [
        {
          name: '数字',
          value: '0',
        },
        {
          name: '字符',
          value: '1',
        },
      ],
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'isOpen',
      placeholder: '是否使用',
      label: '是否使用',
      componentType: 'Select',
      dataSource: [
        {
          name: '是',
          value: '1',
        },
        {
          name: '否',
          value: '0',
        },
      ],
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
    },
  ];
};

export { getSearchColumns };
